package com.xy.blog.user.dao.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * @author zanhonglei
 * @version V1.0
 * @Description:
 * @date 2020/3/5
 */
@Data
@Table(name = "t_attr_dict")
public class AttrDictDO {

    @Id
    private Long id;
    /**
     * 属性名称
     */
    private String name;
    /**
     * 属性编码
     */
    private String code;
    /**
     * 属性类型
     */
    private String type;
    /**
     * 是否为多值属性
     * 单值 1
     * 多值 2
     */
    @Column(name = "value_type")
    private String valueType;


    @Column(name = "create_time")
    private LocalDateTime createTime;

    @Column(name = "update_time")
    private LocalDateTime updateTime;
}
